]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
unlockDialog, loginDialog: Add a 'wake-up-screen' signal
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 28 Nov 2019 21:22:55 +0000 (18:22 -0300)
committerFlorian Müllner <florian.muellner@gmail.com>
Mon, 10 Feb 2020 22:30:51 +0000 (22:30 +0000)
The signal is currently present in the notifications box, but next
commits will move the notifications box to the unlock dialog.

Add a 'wake-up-screen' signal to the dialogs.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/872

js/gdm/loginDialog.js
js/ui/screenShield.js
js/ui/unlockDialog.js

index 2fd24eafda986fa952cc4136e945518457c8f00d..503245a5742d2705136d207c038794d8c62779f5 100644 (file)
@@ -409,7 +409,10 @@ var SessionMenuButton = GObject.registerClass({
 });
 
 var LoginDialog = GObject.registerClass({
-    Signals: { 'failed': {} },
+    Signals: {
+        'failed': {},
+        'wake-up-screen': {},
+    },
 }, class LoginDialog extends St.Widget {
     _init(parentActor) {
         super._init({ style_class: 'login-dialog', visible: false });
index 48b735ad650c90faa41e7abdc0c3dc8a1d898540..94e399bbb263dcf856c396affe99d3e52e350cbd 100644 (file)
@@ -819,6 +819,8 @@ var ScreenShield = class {
             }
 
             this._dialog.connect('failed', this._onUnlockFailed.bind(this));
+            this._wakeUpScreenId = this._dialog.connect(
+                'wake-up-screen', this._wakeUpScreen.bind(this));
         }
 
         this._dialog.allowCancel = allowCancel;
index 07545da49de957bd10dff7a9070fec9470d84036..f1cdc8b53a25b43015094697c80a2bf67c1f5528 100644 (file)
@@ -53,7 +53,10 @@ class UnlockDialogClock extends St.BoxLayout {
 });
 
 var UnlockDialog = GObject.registerClass({
-    Signals: { 'failed': {} },
+    Signals: {
+        'failed': {},
+        'wake-up-screen': {},
+    },
 }, class UnlockDialog extends St.Widget {
     _init(parentActor) {
         super._init({